import { Entity, Link, PrimaryUuid, Code, Title, DisplayOrder, Boolean } from "@sker/core";


@Entity({ name: 'sys_menu' })
export class SysMenu {

    @PrimaryUuid({
        primaryKeyConstraintName: "PK_SYS_MENU_ID"
    })
    id!: string;

    @Code({ nullable: true, default: 'admin' })
    role: string;

    @Code({ nullable: true })
    name: string;

    @Title({ nullable: true })
    title: string;

    @Code({ nullable: true })
    icon: string;

    @Link({ nullable: true })
    url: string;

    @Code({ nullable: true })
    pname: string;

    @Link({ nullable: true })
    main: string;

    @DisplayOrder()
    displayorder: number;

    children: any[];

    @Boolean({ default: false })
    is_group: boolean;

}